package com.soft.javase.day01.consolidation;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/15
 */
public class ObjectProgram {
    public static void main(String[] args) {
        Student student = new Student("张三",18);
        System.out.println("姓名："+student.getName()+" 年龄："+student.getAge());

        student.setAge(20);
        student.setName("李华");

        System.out.println("姓名："+student.getName()+" 年龄："+student.getAge());
    }
}
